package group.igfd.manager.biz.service.impl;

import group.igfd.manager.biz.entity.TransportLogisticsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import group.igfd.manager.biz.dao.FreightcompanyDao;
import group.igfd.manager.biz.entity.FreightcompanyEntity;
import group.igfd.manager.biz.service.FreightcompanyService;


@Service("freightcompanyService")
public class FreightcompanyServiceImpl extends ServiceImpl<FreightcompanyDao, FreightcompanyEntity> implements FreightcompanyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<FreightcompanyEntity> page = this.selectPage(
                new Query<FreightcompanyEntity>(params).getPage(),
                new EntityWrapper<FreightcompanyEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<FreightcompanyEntity> list() {
        EntityWrapper<FreightcompanyEntity> freightcompanyEntityEntityWrapper = new EntityWrapper<>();
        freightcompanyEntityEntityWrapper.isNotNull("companyCode");

        List<FreightcompanyEntity> freightcompanyEntities = this.selectList(freightcompanyEntityEntityWrapper);
        return freightcompanyEntities;
    }


}
